package info.nightbrest.agt.client;

import static info.nightbrest.agt.client.AgtDispatcher.RpcDataFormat.DATA_JSON_FORMAT;

public final class Constants
{
	public final static String RPC_ENDPOINT_URI = "/rpc";
	public final static AgtDispatcher.RpcDataFormat RPC_DATA_FORMAT = DATA_JSON_FORMAT;

	public static AgtDispatcher.RpcDataFormat getRpcDataFormat()
	{
		return RPC_DATA_FORMAT;
	}

	public static String getRpcEndpointUri()
	{
		return RPC_ENDPOINT_URI + "/" + getRpcDataFormat().toString();
	}

	public static String getActionUri(String actionUri)
	{
		return getRpcEndpointUri() + actionUri;
	}
}

